<template>
  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="index3.html" class="brand-link">
      <img src="@/assets/dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
      <span class="brand-text font-weight-light">AdminLTE 3</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="@/assets/dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block">perter • pan</a>
        </div>
      </div>

<!--       SidebarSearch Form-->
<!--      <div class="form-inline">-->
<!--        <div class="input-group" data-widget="sidebar-search">-->
<!--          <input class="form-control form-control-sidebar" type="search" placeholder="Search" aria-label="Search">-->
<!--          <div class="input-group-append">-->
<!--            <button class="btn btn-sidebar">-->
<!--              <i class="fas fa-search fa-fw"></i>-->
<!--            </button>-->
<!--          </div>-->
<!--        </div>-->
<!--      </div>-->

      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="true">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
          <li class="nav-item menu-open">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                小工具
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <router-link to="/tool/main" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>主页面</p>
                </router-link>
              </li>

              <li class="nav-item">
                <router-link to="/tool/gen_req" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>生成请求</p>
                </router-link>
              </li>
              <li class="nav-item">
                <router-link to="/tool/del_zhuan_yi" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>去除转义</p>
                </router-link>
              </li>
              <li class="nav-item">
                  <router-link to="/tool/replace" class="nav-link">
                    <i class="far fa-circle nav-icon"></i>
                    <p>替换</p>
                  </router-link>
                </li>

                <li class="nav-item">
                    <router-link to="/tool/upload" class="nav-link">
                      <i class="far fa-circle nav-icon"></i>
                      <p>上传</p>
                    </router-link>
                </li>
            </ul>
          </li>
          <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-th"></i>
              <p>
                课程管理
                <span class="right badge badge-danger">New</span>
              </p>
            </a>
            <ul class="nav nav-treeview">
              <li class="nav-item">
                <a href="#" class="nav-link active">
                  <i class="far fa-circle nav-icon"></i>
                  <p>课程列表</p>
                </a>
              </li>
            </ul>

          </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>
</template>

<script>

//import $ from 'jquery';
export default {
  name: "AsideContainer",
  mounted() {
    this.addClickListener();
  },
  methods: {
    addClickListener() {
//      $(this.$el).find('.abc').on('expanded.lte.treeview', this.handleAbcElementClick)
     // $('ul').on('expanded.lte.treeview', this.handleAbcElementClick)
    },
    handleAbcElementClick() {
      
    }
  }
}
</script>

<style scoped>

</style>